package com.hopes.bizz.protocol.hj212.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author daijie
 * @version 1.0
 * @date 2023/6/8 10:18
 * @Description:
 */
@Data
@TableName(value ="protocol_hj212_mq_log")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "hj212协议转发mq消息日志")
public class ProtocolHj212MqLogEntity extends Model<ProtocolHj212MqLogEntity> {

    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="id")
    private Long id;

    @Schema(description="消息发送结果")
    private Boolean success;

    @Schema(description="消息内容主体")
    private String textMessage;

    @Schema(description="消息发送时间")
    private Date sendTime;

    @Schema(description="消息队列")
    private String queue;

    @Schema(description="消息topic")
    private String topic;

    @Schema(description="消息交付模式")
    private Integer deliveryMode;

    @Schema(description="消息确认模式")
    private Integer acknowledgeMode;

    @Schema(description="发送失败错误码")
    private String errorCode;

    @Schema(description="发送结果详情")
    private String detailMessage;
}